<template>
  <div class="customer-card">
    <div class="title">
      <span>你的专属客服</span>
      <br />
      <span>用心解答您的每一个疑问</span>
    </div>
    <div class="date">
      <span>工作时间：</span>
      <br />
      <span>周一至周五 9:00-18:00</span>
    </div>
    <n-button class="customer-btn" round strong secondary @click="handCall">
      <img src="@/assets/icon/user/customer.png" alt="" />
      <span>在线客服</span>
    </n-button>
    <img class="bg" src="@/assets/icon/user/customerBg.png" alt="" />
  </div>
</template>
<script setup lang="ts">
import { NButton } from 'naive-ui'
const handCall = () => {
  window.open('https://work.weixin.qq.com/kfid/kfcef4738f1f5cc5358')
}
</script>

<style scoped lang="scss">
.customer-card {
  background: linear-gradient(180deg, #787878 0%, #404040 100%);
  border-radius: 12px;
  padding: 32px 30px;
  box-sizing: border-box;
  position: relative;
  .bg {
    position: absolute;
    width: 166px;
    height: 177px;
    right: 0;
    bottom: 0;
    display: block;
  }
  .title {
    font-size: 18px;
    font-family: PingFang SC, PingFang SC;
    font-weight: bold;
    color: #ffffff;
    line-height: 30px;
  }
  .date {
    margin-top: 18px;
    line-height: 24px;
    font-size: 14px;
    font-family: PingFang SC, PingFang SC;
    font-weight: 400;
    color: #ffffff;
  }
  .customer-btn {
    margin-top: 24px;
    height: 38px;
    background: #ffffff;
    img {
      width: 16px;
      height: 16px;
    }
    span {
      margin-left: 4px;
      font-size: 14px;
      font-family: PingFang SC, PingFang SC;
      font-weight: 400;
      color: #333333;
    }
  }
}
</style>
